package org.hzero.exam.domain.entity;

import io.choerodon.mybatis.annotation.ModifyAudit;
import io.choerodon.mybatis.annotation.VersionAudit;
import io.choerodon.mybatis.domain.AuditDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 马旭阳
 * @date2019/8/5
 */
@ApiModel("客户信息")
@ModifyAudit
@VersionAudit
@Table(name = "hodr_customer")
public class HodrCustomer extends AuditDomain {
    @Id
    @GeneratedValue
    private Long customerId;
    @NotBlank
    @ApiModelProperty("客户编号")
    private String customerNumber;
    @NotBlank
    @ApiModelProperty("客户名称")
    private String customerName;
    @NotNull
    @ApiModelProperty("启用标识")
    private Long enableFlag;
    @NotNull
    @ApiModelProperty("公司ID")
    private Long companyId;

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public String getCustomerNumber() {
        return customerNumber;
    }

    public void setCustomerNumber(String customerNumber) {
        this.customerNumber = customerNumber;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public Long getEnableFlag() {
        return enableFlag;
    }

    public void setEnableFlag(Long enableFlag) {
        this.enableFlag = enableFlag;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }
}
